#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<math.h>


int i,j;
int days1[13]={0,31,28,31,30,31,30,31,31,30,31,30,31};
int days2[13]={0,31,29,31,30,31,30,31,31,30,31,30,31};

int main(void)
{
	int year,month,day;
	int sumdays=2000-31-(30-9); 
	year=2015;
	
	while(sumdays > 365)
	{
		if(year%4==0 && year%100!=0 || year%400==0)
		{
			sumdays = sumdays - 366;
		}
		else 
			sumdays = sumdays - 365;
		year++;
	}
	month=1;
	if(year%4==0&&year%100!=0 || year%400==0){
			while(sumdays > 29)
			{
				sumdays = sumdays - days2[month];
				month++;
			}
	}
	else
	{
		while(sumdays > 28)
		{
			sumdays = sumdays - days1[month];
	     	month++;
		}	
	}
	
	printf("%d-",year);
	
	if(month < 10)
		printf("0%d-",month);
	else
		printf("%d-",month);
		
	if(sumdays < 10)
		printf("0%d",sumdays);
	else
		printf("%d",sumdays);
			
	return 0;
}
